import 'package:flutter/material.dart';
import 'dart:ui';
class AppColors{
  static const AppBarColors = 0xff303030;
  static const TabIconActive = 0xff46c11b;
  static const TabIconNormal = 0xff999999;
  static const TitleTextColor = 0xff353535;
  static const CoversationItemBGNormal = 0xffffffff;
  static const CoversationItemBGStick = 0xfff0f0f0;
  static const DesTextColor = 0xff9e9e9e;
  static const DividerColor = 0xffd9d9d9;
  static const NotifyDotBgColor = 0xffff3e3e;
  static const NotifyDotTextColor = 0xffffffff;
  static const DeviceInfoTextColor = 0xff62626e;

}

class AppStyle {
  static const TitleStyle = TextStyle(
    fontSize: 15.0,
    color: Color(AppColors.TitleTextColor),
  );
  static const DesStyle = TextStyle( 
    fontSize: 13.0,
    color: Color(AppColors.DesTextColor),
  );

  static const UnredMsgCountDot = TextStyle(
    fontSize: 12.0,
    color: Color(AppColors.NotifyDotTextColor),
  );
  static const DeviceInfoText = TextStyle(
    fontSize: 13.0,
    color: Color(AppColors.DeviceInfoTextColor)
  );
}

class Constants{
  static const IconFontFamily = 'appiconfont';
  static const ConversationAvatarSize = 48.0;
  static const DividerWidth = 0.5;
  static const UnredMsgNotifyDotSize = 20.0;
  static const ContactAvatarSize = 36.0;

  static double getScreenWidth(BuildContext context) {
    return MediaQuery.of(context).size.width;
  }

  static double getScreenHeight(BuildContext context) {
    return MediaQuery.of(context).size.height;
  }

  static double getSysStatsHeight(BuildContext context) {
    return MediaQuery.of(context).padding.top;
  }
}
